package com.kha.listone.util;

import com.nokia.mid.ui.orientation.OrientationListener;

class OrientationImpl extends Orientation implements OrientationListener {

	OrientationImpl() {
		// Listen for orientation events
		com.nokia.mid.ui.orientation.Orientation.addOrientationListener(this);
	}

	/**
	 * Deliver sizeChanged event to listener
	 * 
	 * @param newDisplayOrientation
	 */
	public void displayOrientationChanged(int newDisplayOrientation) {
		com.nokia.mid.ui.orientation.Orientation
				.setAppOrientation(newDisplayOrientation);
	}
}
